# types.NewWindowOptions.index

- **Module:** types
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-ts/blob/f8ca14551254f81800faedc8bee9151565044ef1/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/ts/latest/reference/types-newwindowoptions-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.
