_internal.classes.sleep - vladzaharia/bitburner GitHub Wiki
▸ sleep(ns, duration, print?): Promise<true>
Sleeps for duration and prints a user-readable string.
export
async
| Name | Type | Default value | Description |
|---|---|---|---|
ns |
NS |
undefined |
The Netscript object. |
duration |
number |
undefined |
- |
print |
boolean |
true |
- |
Promise<true>
Always returns true
_internal/classes/sleep.ts:118
▸ getHumanDuration(duration): string
Converts a duration in ms to a human readable string like "1 hour".
| Name | Type | Description |
|---|---|---|
duration |
number |
Duration to convert, in ms. |
string