Star Anise keeps a while so you can keep them as long as you keep them whole.

I made my own star anise tincture with the extras I have. Just fill a jar and top with an alcohol (I use grain alcohol) and let sit for 4-6 weeks and decant the liquor. It’s delicious to add to cocktails