Jwt in worker with durable objects

I am attempting to use a third party library within my worker with durable objects and am unable to do so with either require or imports. Could someone please point me in the right direction?

I am trying to utilize JWT’s within my worker for basic authentication and would like to import a small jwt library.