@lazyglobal off.

runoncepath("/lib/node").

if not HASNODE {
  print "No node planned.".
  return.
}

print "Node dV: " + NEXTNODE:DELTAV:MAG.
print "Burn time: " + BurnTime(NEXTNODE:DELTAV:MAG).
print "Lead time: " + BurnTime(NEXTNODE:DELTAV:MAG / 2).
print "Node UT: " + NEXTNODE:TIME.
print "Node ETA: " + NEXTNODE:ETA.
print "Will stage? " + choose "yes" if WillStage(NEXTNODE:DELTAV:MAG) else "no".