It means that 2 events happened very closely together in time - for example, if a woman gave birth to a baby on August 5th and her friend gave birth to a baby on August 12th, someone could say that “they gave birth within days of each other” or “their children were born within days of each other”