[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [prompt](./bitburner.ns.prompt.md)
## NS.prompt() method
Prompt the player with a Yes/No modal.
Signature:
```typescript
prompt(txt: string): Promise;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| txt | string | Text to appear in the prompt dialog box. |
Returns:
Promise<boolean>
True if the player click “Yes” and false if the player clicks “No”.
## Remarks
RAM cost: 0 GB
Prompts the player with a dialog box with two options: “Yes” and “No”. This function will return true if the player click “Yes” and false if the player clicks “No”. The script’s execution is halted until the player selects one of the options.