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

View File

@@ -3740,9 +3740,11 @@ interface Stanek {
* ```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}