Here ' just' is an adverb and means 'exactly ,precisely '
Exactly how long the universe will continue to expand ......
You can use it or leave it out !
And the question is still valid ,because in spite of finding out about the accelerating expansion of the universe , there is still no 100 % guarantee of its infinite expansion ,it depends on other factors ,that will result in expanding forever or else collapsing back on itself in a so called ' big crunch " . Not certain yet !