How to migrate from javascript to typescript without wasting time