presciently

adverb
  1. in a way that shows knowledge of events before they happen; with foresight

Examples