2022-10-21 17:16:00 +02:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home ](./index.md ) > [bitburner ](./bitburner.md ) > [NS ](./bitburner.ns.md ) > [asleep ](./bitburner.ns.asleep.md )
## NS.asleep() method
Suspends the script for n milliseconds. Doesn't block with concurrent calls. You should prefer 'sleep' over 'asleep' except when doing very complex UI work.
2023-02-11 19:18:50 +01:00
**Signature:**
2022-10-21 17:16:00 +02:00
```typescript
asleep(millis: number): Promise< true > ;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| millis | number | Number of milliseconds to sleep. |
2023-02-11 19:18:50 +01:00
**Returns:**
2022-10-21 17:16:00 +02:00
Promise< true>
## Remarks
RAM cost: 0 GB