* chore: add swap files to ignores * chore: set up typescript deps * refactor: rough conversion * chore: linting config * refactor: isolate untestable bits * chore: runtime mapping * chore: move tests