You can negotiate over this. If termites I would make sure all damage done was repaired. If just a bunch of unfriendlies gassing them may do it. Be aware, if bugs came in once, they could return again later.
I would push to get the seller to pay for that fix. It is worth it to them so they do not lose you and a sale.