Here the meaning is not "ago" but rather "there is" or "there are"
What does Há mean, the dictionary hints are no help.
Exist, there is, have.
but the dictionary is also right, it can express ago: há muito tempo = a long ago
or: há um ano = one year ago