Convert simple jQuery Script into Typescript

Job ID: 31702720

Budget: $30 – $250 USD

I have a simple jquery script that is taking overflowing navigation items and putting them into a ... dropdown.

So when the screen width decreases it is placing the navigation items that don't fit anymore into a new dropdown with the name of ...

Here is a working example:
https://codepen.io/iamscottfreeman/pen/wBNoXx

I want you to convert this into pure clean TypeScript with no additional libraries.
Related categories: JavaScript Typescript