Stars only twinkle when we look at them from Earth.
Out in space their light shines steadily.
We see them twinkling and shimmering because of the air around the Earth- as light from a star travels towards us, it is bent and wobbled by bubbles of hot and cold air.