Motivated by the recent analysis by Sano et al. 2019, Phys. Rev. Fluids, vol. 4, p. 094602, of spanwise-coherent structures in the turbulent flow around airfoils and their connection to trailing-edge noise, we carry out a thorough characterisation of such structures in three simulation databases. We analyse two different numerical simulations of incompressible flow in turbulent regime, both at chord Reynolds number of 400,000: a large-eddy simulation for a NACA 0012 profile at zero angle of attack, and a direct numerical simulation for a NACA 4412 airfoil with an angle of attack of 5 degrees. Snapshots of the flow field were analysed using Spectral Proper Orthogonal Decomposition (SPOD), in order to extract the dominant coherent structures of the flow. Focus is given to the aforementioned spanwise-coherent fluctuations, which two-dimensional disturbances in the computational domain due to the use of periodic boundary conditions. The leading SPOD modes show that the most energetic coherent structures are wavepackets, extending over the whole turbulent boundary layers around the airfoils with significant amplitudes near the trailing-edge. Higher amplitudes are observed in the region of stronger adverse pressure gradient at the suction side of the NACA 4412 airfoil. To understand how such structures in the turbulent field can be modelled, the linear response of the flow using the singular value decomposition of the linearised resolvent operator was performed, using the mean field as a base flow and considering a locally parallel approximation. Such analysis shows that the leading SPOD modes can be associated to optimal, linearised flow responses, particularly for stations far from the trailing edge; the latter introduces a discontinuity in boundary conditions, and the locally parallel approximation becomes questionable. We then focus on evaluating the dependence of such wavepackets on the domain size, to ensure that these structures are not an artifact of the use of periodic boundary conditions in small computational boxes. To do so, we performed an incompressible LES of a zero-pressure gradient turbulent boundary layer (ZPGTBL), for three different spanwise sizes: Lz=32 δ*, Lz=64 δ* and Lz=128 δ*, where δ* is a reference displacement thickness in a region of developed turbulent flow, with Reynolds number matching the values in the airfoil simulations. The signature of such wavepackets is seen in non-premultiplied spanwise wavenumber spectra, which reaches, for the three domain sizes, a plateau for spanwise wavelengths going to infinity (or wavenumbers going to zero); this plateau is representative of the spanwise-coherent structures seen in the airfoil simulations. Similar SPOD and resolvent analyses were carried out for the zero spanwise wavenumber of the ZPGTBL, and the same coherent wavepackets were observed for the three domains, with very similar amplitudes. Such wavepackets were also accurately modelled using the optimal resolvent response. These results confirm that the spanwise-elongated structures are not domain-size dependent for the studied simulations, and are thus a feature of turbulent boundary layers.