Both excellent ideas.
Mine is to drop a fuel-air bomb on their headquarters.
I’d go for that. That would be the Air Force’s contribution. Timed for right after the one pirate got back home to tell his story to the town.
“Hey man, they were like shadows. Came out of nowhere. Killed everyone. Uh, what’s that noise? (looks up) Oh, noes...” Village wiped out by MOAB, followed by a shower of leaflets describing why it happened and what would happen the next time... if there would be a next time.