[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [getPurchasedServers](./bitburner.ns.getpurchasedservers.md) ## NS.getPurchasedServers() method Returns an array with the hostnames of all of the servers you have purchased. **Signature:** ```typescript getPurchasedServers(): string[]; ``` **Returns:** string\[\] Returns an array with the hostnames of all of the servers you have purchased. ## Remarks 1.05 GB