mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 14:59:16 +02:00
843 B
843 B
Home > bitburner > NS > getPurchasedServers
NS.getPurchasedServers() method
Returns an array with the hostnames or IP addresses of all of the servers you have purchased. Returns hostnames by default.
Signature:
getPurchasedServers(returnOpts?: HostReturnOptions): string[];
Parameters
| Parameter | Type | Description |
|---|---|---|
| returnOpts | HostReturnOptions | (Optional) Optional. Controls whether the function returns IPs |
Returns:
string[]
Returns an array with the hostnames or IP addresses of all of the servers you have purchased.
Remarks
1.05 GB