bitburner-src/doc/source/netscript/basicfunctions/getPurchasedServers.rst
2023-01-06 14:43:09 +02:00

14 lines
375 B
ReStructuredText

getPurchasedServers() Netscript Function
========================================
.. js:function:: getPurchasedServers()
:RAM cost: 2.25 GB
:returns: String array of hostnames of all of the servers you have purchased.
Example:
.. code-block:: javascript
ns.getPurchasedServers(); // returns: ['grow-server-0', 'grow-server-1', 'weaken-server-0']