This used to trouble me until I realized my concept of Yahweh and time was inaccurate and I was limiting God to an experience of time like that a human has. A better understanding of the relativity of time and things like gravitational lensing made it click for me.
So granted this is a presuppositional argument. Time is an actual dimension not just humans measurement of it. If there is an architect to all things created the creator himself is not stuck in and limited to that dimension. So when Yahweh looks at time or "steps into it" on our level he can still see all things past/future/present concurrently. Therefore when he prophesies something will happen it as good as if you did it/are doing it/will do it. You have already chosen your actions at that point in time and he is reporting back what he has seen to prove His glory and power that he Truly is God. Your free will was never touched, you made your choice.