Distant Starlight vs. the Biblical Timeline

How can the earth be just thousands of years old when we can we see the light from distant stars? Does distant starlight disprove the Bible? Genesis 1 clearly says that the sun, moon, and stars were created on the 4th day, and the genealogies in Genesis 5 and 10 lead back to Adam who was formed by God on the 6th day just thousands of years ago. But the distant light from stars seems to prove earth and our universe was created billions of years ago. Is this a contradiction?

https://www.youtube.com/watch?v=BGvds-t5Jy0