How to fix Cannot use namespace 'X' as a type in TypeScript | DevErrors