The pharmacy chain said it planned to close 270 locations nationwide this year, in addition to about 900 stores the company shut down between 2022 and 2024.