Advance Auto Parts executives announced Thursday that the company will be closing 523 corporate stores through 2027.