novel about a morally grey pirate captain who is cursed to die within 5 years for stealing some forbidden treasure, and only giving her heart to someone and expecting nothing back can break the curse
but rather than go on some journey to find some true love or whatever, she decides to use her last years to travel the seas with her crew and collect treasure and drink and be merry
and on the day of reckoning, she is falling more and more ill, and her crew gather all around her to say goodbye to their captain when suddenly the curse is broken. because she gave her whole heart to her ship and her crew, and expected nothing back.
EDIT: if you steal this idea from me i will hunt you down and inflict bodily harm upon you. do not test me, buddy.