So this has caused some confusion. In one exercise one was asked to prove that
$$\lim_{k \rightarrow \infty} \int_A \cos(kt)dt=0$$
where $A \subset [-\pi, \pi]$ is a measurable set.
My initial idea was to take any $a,b \in A$ and then show that:
$$\lim_{k \rightarrow \infty} \int_a^b cos(kt)dt= \lim_{k \rightarrow \infty} \frac{\sin(bk)-\sin(ak)}{k} =0$$
But my instructor said that this wouldn't work out because the lengths of the partitions on $A$ would make my computation impossible. I'm not sure about this.
Trying to use an interval as a replacement for $A$ is not a good approach. $A$ could be a very complicated set, after all; it could be a countable union of intervals, or a set like the irrationals, or some totally disconnected Cantor set with positive measure. There is a general principle that measurable sets are like countable unions of intervals for many purposes, but this approach goes too far.
So there is very little relationship between the interval $[a, b]$ and the set $A$, even with $a, b \in A$.
For an approach that you might find more successful: The integral you've written is the real part of the $k$-th Fourier coefficient of $\chi_A$ (the indicator function of $A$). What does Plancherel tell you?