Over-Contributed to a 401K

When my wife switched jobs in mid- 2024, her 401K contributions under the new employer, combined with her contributions under the  former employer  surpassed the allowed amount. I filed an extension and paid an estimated amount. What forms and steps are required to complete our joint 2024 filing?