How does Haruki know what her ability is?
It's because the time travel girl explains to her. That is the only explanation I could think of, but yeah, the time travel girl we meet at the first episode tells her about her ability.