This commit is contained in:
Olivier Gagnon
2021-12-16 15:28:53 -05:00
parent e16fba2418
commit 33e918fc49
4 changed files with 13 additions and 7 deletions

6
dist/bitburner.d.ts vendored
View File

@@ -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}