Classic tunnel effect in TypeScript