Distant Starlight and 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 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 show earth and our universe were created billions of years ago. Is this a contradiction?