The intent of that provision in NY law is so that if someone is trying to run out the clock for NY state by being outside of its jurisdiction and ability to indict them doesn't get a free pass.
The question will be "is it literally 'being outside of New York' or is it 'being outside the jurisdiction New York, of which assuming the role of POTUS is example of'?"