If I refinanced my home and wrapped an existing HELOC into it and paid points on the refinance, can I write off all the points this year? Or do I amortize it?

All the funds in the HELOC were used for home improvement and this was for my primary residence. The HELOC amount was 7% of the total refinance amount. I don't see any way in TurboTax to split the points.

Also adding some complexity is the refinance was immediately bought by a different lender. Do I associate the points with that lender/1098 as well?