To make further development easier & less error-prone, we should migrate the current vanilla-js codebase to ts. cc @codebytere