---
url: /reference/api/logger/prompts.Variable.tasks.md
---
# Variable: tasks

```ts twoslash
// @include: imports
const tasks: (tasks, opts?) => Promise<void>;
```

Defined in: node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:921

Define a group of tasks to be executed

## Parameters

`tasks`

[`Task`](prompts.TypeAlias.Task.md)\[]

`opts?`

[`CommonOptions`](prompts.Interface.CommonOptions.md)

## Returns

`Promise`<`void`>
