Similarly, explicit resource management in TypeScript is handled using the using declaration (and await using for asynchronous operations), introduced in TypeScript 5.2 as an implementation of a Stage 3 ECMAScript proposal:
https://v8.dev/features/explicit-resource-management