Answer:
The type of figurative language used in the sentence is simile.
Step-by-step explanation:
The simile is comparing the sound of hail hitting windows to the sound of a never-ending shotgun blast. This creates a vivid image in the reader's mind of the intensity of the hailstorm, as well as the potential danger it poses. The comparison to a shotgun blast also implies a sense of violence and destruction, adding to the ominous tone of the sentence. By using a simile, the author is able to convey the severity of the hailstorm in a way that is both vivid and memorable.