mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 07:18:38 +02:00
scan doc
This commit is contained in:
9
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
9
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -4182,15 +4182,14 @@ export interface NS extends Singularity {
|
||||
* @remarks
|
||||
* RAM cost: 0.2 GB
|
||||
*
|
||||
* Returns an array containing the hostnames or IPs of all servers that are one
|
||||
* node way from the specified target server. The hostnames/IPs in the returned
|
||||
* Returns an array containing the hostnames of all servers that are one
|
||||
* node way from the specified target server. The hostnames in the returned
|
||||
* array are strings.
|
||||
*
|
||||
* @param host - Hostname of the server to scan.
|
||||
* @param hostnames - Optional boolean specifying whether the function should output hostnames (if true) or IP addresses (if false).
|
||||
* @returns Returns an string of hostnames or IP.
|
||||
* @returns Returns an string of hostnames.
|
||||
*/
|
||||
scan(host: string, hostnames?: boolean): string[];
|
||||
scan(host?: string): string[];
|
||||
|
||||
/**
|
||||
* Runs NUKE.exe on a server.
|
||||
|
||||
Reference in New Issue
Block a user