it feels more natural to return value for selection:
const selectedBranch: string = await $.select({
message: "Select a branch:",
options: branches,
})
or we could return an option:
> await $.select({
... message: "Select a branch:",
... options: branches,
... })
{ index: 10, value: "main" }