How to fix Cannot find name 'global' in TypeScript | DevErrors