TypeScript: Option to disable preview window