refactor typescript ext