Help With a project

I had a question about a project that I want to do. I bought this squeeze bottle, but I don’t like how wide the nozzle is. So I want to 3D print a new one that I design in shapr3D. It’s easy enough to make the shape with a bunch of cylinders stacked on one another, but my issue is the getting the threading right. How do I get the threading for the inside part of the cap? I want to make sure this new cap can perfectly fit the bottle without any leakage. Any help would be appreciated.