How long does a Prius battery last?

I have a coworker with a hybric Civic with a battery that needs to be overhauled. He said it was a $3000+ repair. The car currently has around 175,000 miles on it – I think his plan is to not put any more work into the car and just drive it until it’s dead. It still drives fine but is suffering from reduced mpg and error codes.