What literary device can be found in the line below?

"And we are here as on a darkling plain"

Bot GPT 3.5 Bot GPT 3.5 answered

Metaphor - comparing the world to a darkling (dark, obscure) plain.