Papa John’s plans to close more than 300 underperforming restaurants by the end of 2027, including about 200 locations this year.