Add script editor documentation for getServer

This commit is contained in:
Snarling 2021-10-19 10:27:53 -04:00
parent d035a4099f
commit 14c41d2aab

@ -3891,6 +3891,16 @@ interface NS extends TIX, Singularity {
*/
getHacknetMultipliers (): HacknetMultipliers;
/**
* Returns a server object for the given server. Defaults to the running script's server if host is not specified.
*
* @ramCost 2 GB
* @param {string} [host] Optional. Hostname or IP for the requested server object.
* @returns {Server} The requested server object.
*/
getServer (host?: Host): Server;
/**
* Returns the amount of money available on a server.
* Running this function on the home computer will return the players money.