How to access .jar file in .ts file

Hi friends,
actually i have purchase the Bill machine in which inbuilt printer is there, so i have developed a food app, when user purchase an item i want to give receipt as print, but the billing machine person give me a .jar to access that printer
Please help me how should i include that .jar file and how should i access that jar file in my .ts file, please help me out i am struck in the middle of the project.
thank you in advance.

Unfortunately I doubt this one is going to have an easy answer. What platforms are you needing to support? Can you get away with Android only?

Thanks for your reply, Yes I want only on Android platform.

Then I would suggest starting your journey here.

But I want create plugin in Cordova.