The Bainbridge carries one MK-45 5-inch gun and two Phalanx CIMS weapons.
Oops. I meant CIWS weapons.
These are 20 mm Gatling guns used for point defense, last ditch missile intercept but they can be depressed below horizontal.
Fire one of those at the pirates and they would just disappear.