# types.SpawnOptions.orphanAfterMs

- **Module:** types
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-ts/blob/ad09eaef7ffff40f510989ee0695852c44a31576/packages/libtmux/src/types.ts#L551
- **Page:** https://libtmux.org/en/ts/latest/reference/types-spawnoptions-orphanafterms/

Have tmux end the program, and remove its pane unless [`keep`](/en/ts/latest/reference/types-spawnoptions-keep/) is set, this many milliseconds after this process stops renewing a lease on it: after it exits or dies without [`Program.kill`](/en/ts/latest/reference/program-program-kill/). A live process renews the lease every third of this period. At least 1000; 60000 by default. [`null`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/null) takes no lease, for a program meant to outlive this process. Renewals run on the event loop, so a stall longer than this, such as a debugger paused at a breakpoint, ends the program too; raise it, or pass [`null`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/null), there.
