_workers.weaken - vladzaharia/bitburner GitHub Wiki
▸ main(ns): Promise<void>
Weaken host(s) from Terminal.
export
example Weaken single passed in host.
run /helpers/weaken.js [host0]example Weaken multiple passed in hosts.
run /helpers/weaken.js [host0] ... [hostn]| Name | Type | Description |
|---|---|---|
ns |
NS |
The Netscript object. |
Promise<void>
▸ weaken(ns, hostname): Promise<number>
Weaken host at hostname.
export
async
| Name | Type | Description |
|---|---|---|
ns |
NS |
The Netscript object. |
hostname |
string |
Host to weaken. |
Promise<number>
The amount by which the server's security level was decreased.