How to fix Module 'X' cannot be ambient in this context in TypeScript | DevErrors