For your State tax return the system will need only the dates you’ve been in and out of the US or in different States during the 2024 tax year only. Any other visits on Step 6 State taxes, sub-step Living in the US that were part of 2023, 2022 etc. are not required here.
Important: Please be advised that visits less than 24h as well as short visits to different states should NOT be included here. You only need to report the different states (if such) you actually lived in during the tax year.