Migrate codebase to TypeScript
No major changes have been made aside from adding types. All 4 added dependencies are development dependencies. These consist of types (@types/jest, @types/react, @types/react-dom) and jiti (required for using TS for config files).
There are still parts that miss proper types, I think this will require writing interfaces for all API responses. I can look into that later, if desired.
I forgot to format the code with prettier, this has been done now.
Linking https://github.com/kopia/kopia/issues/2096
@QazCetelic this still has conflicts, could you look into that?
btw, the plan is to cut the release without this change, so that we can start next version with merging this PR