Present choices navigable with arrow keys, Enter, or a click.
Prompt text, limited to 512 characters.
Array of 1–8 nonempty strings, each at most 128 characters.
The selected label, not an index; rejects for invalid choices or cancellation.
const route = await terminal.choose("Destination:", ["Archive", "Comms"]);terminal.writeLine(`Opening ${route}.`); Copy
const route = await terminal.choose("Destination:", ["Archive", "Comms"]);terminal.writeLine(`Opening ${route}.`);
Present choices navigable with arrow keys, Enter, or a click.