So between the follow up from Jambr380 and Keevsnick, 2023-24 being over the 2nd apron doesn't count, 2024-25 (this season) we will be over and counts as the first year, and unless we trade a starter, it is likely we will be over in 2025-26, which will be the second year over the 2nd apron.
Then to get out of it, we would need to get back under the 2nd apron threshold for 3 of seasons 2026-27, 2027-28, 2028-29 and 2029-30, or we start losing draft picks. In the meantime, the threshold will go up. But in any case, by the 2026-27 season or earlier, the team will have to shed salary to get and stay under the 2nd apron.