Cohomology and Geometry of Deligne—Lusztig varieties for $\text{GL}_n$