Q: Does the word "lightning" mean the same thing in "That tree was hit by lightning." and "The lightning was hot enough to melt the sand."?

A: the same meaning

Q: Does the word "window" mean the same thing in "They had a window of less than an hour when an attack would have succeeded." and "You have a two-hour window of clear weather to finish working on the lawn."?

A: the same meaning

Q: Does the word "work" mean the same thing in "Do you want to work after the age of 60?" and "She never worked because she inherited a lot of money."?

A: the same meaning

Q: Does the word "treat" mean the same thing in "She was tempted to treat the whole affair as a joke." and "You treated me like a fool."?

A:
the same meaning