Refactor the codebase and integrate Typescript for all the files
Refactor the codebase and integrate Typescript for all the files