NCL did this to us for an excursion at a port they dropped, but we were already onboard. Have you made your final payment yet? If not, I don't see why they wouldn't refund you for June 2024.
btw, NCL did say if we didn't use the onboard credit, they would refund us, and they did. I think they just hope you'll overspend and use it.