mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 14:59:16 +02:00
doc
This commit is contained in:
6
dist/bitburner.d.ts
vendored
6
dist/bitburner.d.ts
vendored
@@ -2138,9 +2138,11 @@ export declare interface NodeStats {
|
||||
* ```ts
|
||||
* export async function main(ns) {
|
||||
* // Basic ns functions can be accessed on the ns object
|
||||
* await ns.getHostname();
|
||||
* ns.getHostname();
|
||||
* // Some related functions are gathered under a sub-property of the ns object
|
||||
* await ns.stock.getPrice();
|
||||
* ns.stock.getPrice();
|
||||
* // Some functions need to be await ed
|
||||
* await ns.hack('n00dles');
|
||||
* }
|
||||
* ```
|
||||
* {@link https://bitburner.readthedocs.io/en/latest/netscript/netscriptjs.html| ns2 in-game docs}
|
||||
|
||||
Reference in New Issue
Block a user