For tax year 2023 you indicate that you ae Married and will be filing with your spouse (Married Filing Jointly).
When entering your spouse's personal information there will be a screen asking if they passed away. Check that box and then enter the date of their passing.