TurboTax will automatically fill out IRS Form 1310 when you file a return on behalf of a deceased person (also called a decedent return).
For a death that occurred during tax year 2021, make sure you indicate that the person died during 2021 or before they filed their 2021 return. That way, TurboTax will generate Form 1310 for you.