How do I not get double taxed for income in Canada I earned in 2024?

I worked for 2 months in Canada and got a T4. The T4 shows I paid taxes. Now I need to enter this in Turbo Tax USA. I can enter it in Foreign Income but then how do I say that I already paid taxes on this? I tried the Foreign tax credit but I am apparently not eligible for that as I did not stay 330 days in Canada. There are some posts that ask to enter a negative number but I am not sure about this. Please help - thank you. Arvind