What is the meaning of Nightwatchman?

Someone who guards a premises at night.

A batsman who is sent in to bat higher than his usual position near the end of a day's play (when light is poor), in order to protect better batsmen.

Source: wiktionary.org