# types.NewWindowOptions.index

- **Module:** types
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-ts/blob/073b9d7dedad900bff6f5ec0ea47794e40225870/packages/libtmux/src/types.ts#L152
- **Page:** https://libtmux.org/en/ts/latest/reference/types-newwindowoptions-index/

Create at this exact index, including below the session's [`base-index`](/en/tmux/latest/catalog/options/base-index/).

Accepts integers from 0 through 2147483647. An occupied index fails without
replacing its window. Invalid values and combining this with [`direction`](/en/ts/latest/reference/types-newwindowoptions-direction/)
throw TypeError before sending a command.
