Nobody by rule; it is a negotiation like any inspection finding. Sellers commonly fund it via a price credit or pay for a pre-closing install. Buyers sometimes absorb it on competitive offers. The written quote is the negotiating document.
More detail
The resolution usually follows the market's temperature and the parties' calendars. A pre-closing install paid by the seller gives the cleanest handoff: the system is in, the verification result is in the file, and the buyer's lender sees a resolved item. A credit suits sellers who are already gone, common in a PCS-heavy market, and lets the buyer choose the installer; just size the credit from a real written quote rather than a guess, because guesses run small. VA and FHA transactions handle it the same way as conventional ones in practice, through the inspection resolution process. Whichever side funds it, insist the agreement name a licensed install with a post-mitigation retest, not just mitigation, so what gets delivered is a working system and not the cheapest pipe. The real estate service handles both structures.